package com.bw.zonghe0719.fragment.welcome

import android.content.Intent
import com.alibaba.android.arouter.launcher.ARouter
import com.blankj.utilcode.util.SPUtils
import com.bw.base.mvvm.BaseViewFragment
import com.bw.zonghe0719.Login.LoginActivity
import com.bw.zonghe0719.MainActivity
import com.bw.zonghe0719.R
import com.bw.zonghe0719.databinding.FragmentBlank3Binding

/**
 * 使用ARouter的拦截器用来统一处理要跳转的界面  若需要登录且未登录则跳转登录页面    否则跳转其他界面
 */
class BlankFragment3 :BaseViewFragment<FragmentBlank3Binding>() {
    override fun initView() {
        binding.`in`.setOnClickListener {
            SPUtils.getInstance().put("time",System.currentTimeMillis())
                ARouter.getInstance().build("/app/MainActivity").navigation()
        }
    }

    override fun initData() {

    }

    override fun getLayoutId(): Int {
        return R.layout.fragment_blank3
    }

}